#!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann.  All rights reserved.
#
"""Repetition of patterns
"""

#end_pymotw_header
from re_test_patterns import test_patterns

test_patterns(
    'abbaabbba',
    # 这叫字符集charset，就是[]列表可选项的别名
    [('[ab]', 'either a or b'),
     ('a[ab]+', 'a followed by 1 or more a or b'),
     ('a[ab]+?', 'a followed by 1 or more a or b, not greedy')],
)
